//
//  HPHttpVipQueryRequest.m
//  HappyPenguin
//
//  Created by zhuangyihang on 1/25/16.
//  Copyright © 2016 zhuangyihang. All rights reserved.
//

#import "HPHttpVipQueryRequest.h"

static NSString *VipQueryTypeString[] = {
    [VipQueryType_All] = @"all",
};

static NSString *VipQueryOrderString[] = {
    [VipQueryOrder_TotalMoney] = @"totalmoney",
};

@implementation HPHttpVipQueryRequest

- (id)init{
    self = [super init];
    if (self) {
    }
    return self;
}

- (NSString *)objectNameOfArray{
    return @"VipQueryObject";
}

- (NSDictionary *)prepareForParameter{
    NSDictionary *dic = @{@"QueryType":VipQueryTypeString[self.type],@"Order":VipQueryOrderString[VipQueryOrder_TotalMoney]};
    return [[super prepareForParameter] merge:dic];
}

- (NSString *)getAppType{
    return @"QueryVipLimit";
}

- (void)pullRefresh{
    self.queryBegin = 1;
    [self send];
}
- (void)loadMore{
    self.queryBegin = self.response.results.count+1;
    [self send];
}

@end